<?php

namespace App\models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Admin extends Model
{
    use SoftDeletes; //开启软删除
    public $timestamps = true; //模型自动维护时间戳
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'last_time';
    protected $table = 'admin'; // 与模型关联的表名
    protected $primaryKey = 'admin_id'; // 与模型关联的表名
}
